package com.cxy.pojo;

/**
 * @author 蔡心勇
 * @create 2022/3/14 - 9:24
 */
public class User {
    private String username;
    private String password;
    private Integer balance;


    public User() {
    }

    public User(String username, String password, Integer balance) {
        this.username = username;
        this.password = password;
        this.balance = balance;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return balance
     */
    public Integer getBalance() {
        return balance;
    }

    /**
     * 设置
     * @param balance
     */
    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public String toString() {
        return "User{username = " + username + ", password = " + password + ", balance = " + balance + "}";
    }
}
